package com.liang.recommend.redis.MyRedis;

import com.liang.recommend.util.RedisUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class RecentActions {

    @Autowired
    RedisUtil redisUtil;

    public void saveAction(){
        redisUtil.set("k1","v1");
        System.out.println(redisUtil.get("k1"));

    }



}
